package org.sfgeeq.chapter2.model;

/**
 * 客户模型
 * Created by  on 2016/8/25.
 */
public class Customer {
    /**
     * PKID
     */
    private long id;
    /**
     * 客户名称
     */
    private String name;

    /**
     * 联系人
     */
    private String contact;
    /**
     * 联系电话
     */
    private String telephone;
    /**
     *邮箱地址
     */
    private String email;
    /**
     *备注
     */
    private String remark;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String toString(){
        StringBuffer builder=new StringBuffer();
        builder.append("Customer[");
        builder.append(" id号[id] = ");
        builder.append(id);
        builder.append(" 名称[name] = ");
        builder.append(name);
        builder.append(" 联系人[contact] = ");
        builder.append(contact);
        builder.append(" 联系电话[telephone] = ");
        builder.append(telephone);
        builder.append(" 邮箱地址[email] = ");
        builder.append(email);
        builder.append(" 备注= ");
        builder.append(remark);
        builder.append("]");
        return builder.toString();
    }
}
